<?php
/*
* 
*/
namespace Content\Behavior;
use Think\Behavior;
class RouteBehavior extends Behavior {
     public function run(&$params){
		 $route=$GLOBALS['setting_model']->getSetting(3);
		 if($route['open']==1)
		 {
			 C('URL_ROUTER_ON',true);
			 C('URL_ROUTE_RULES',array($route['pc_lists'].'/p/:p'=>array('Index/lists'),$route['pc_detail']=>array('Index/detail'),$route['pc_lists']=>array('Index/lists'),$route['mb_lists'].'/p/:p'=>array('Index/lists'),$route['mb_detail']=>array('Index/detail'),$route['mb_lists']=>array('Index/lists')));
		 }
     }
}
?>